package edu.suse.mapper;

import edu.suse.entity.SysMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysMenuMapper {
    List<SysMenu> queryMenuListAll();

    List<SysMenu> findMenuListByRoleIds(@Param("roleIds") List<Long> role_ids);

    List<SysMenu> findMenuListByRoleIdsAndType(@Param("roleIds") List<Long> role_ids, @Param("oneType") Integer oneType);

    List<SysMenu> findMenuListByRoleIdsTypePid(@Param("roleIds") List<Long> role_ids, @Param("pid") Integer pid, @Param("twoType") Integer twoType);




    List<SysMenu> findMenuOR(String status, String title, String url);


    void addMenu(String perms, String title, String url, String pid, String icon);

    SysMenu findMenuById(String id);

    void updatemenuByid(String id, String perms, String title, String url, String pid, String icon);

    void deleteMenuById(String id);
}
